package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 出库单对象 outbound_orders
 * 
 * @author ruoyi
 */
@Data
public class OutboundOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出库单ID */
    private Long outboundOrderId;

    /** 销售单ID */
    @Excel(name = "销售单ID")
    private Long salesOrderId;

    /** 出库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "出库日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date outboundDate;

    /** 出库类型 */
    @Excel(name = "出库类型")
    private String outboundType;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 出库数量 */
    @Excel(name = "出库数量")
    private Integer quantity;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalAmount;

    /** 创建者ID */
    private Long createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    // 省略getter/setter方法...
    // 请使用IDE自动生成getter/setter方法

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("outboundOrderId", getOutboundOrderId())
            .append("salesOrderId", getSalesOrderId())
            .append("outboundDate", getOutboundDate())
            .append("outboundType", getOutboundType())
            .append("productName", getProductName())
            .append("quantity", getQuantity())
            .append("unitPrice", getUnitPrice())
            .append("totalAmount", getTotalAmount())
            .append("createdBy", getCreatedBy())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
} 